package day10.Enum4;

/**
 * @Auther:小陈的Java
 * 定义构造器有参数的枚举
 */
interface GradeInter{
    public abstract String getStr();
}
public enum Grade implements GradeInter{
    A("85-100"){
        @Override
        public String getStr() {
            return "优秀";
        }
    },B("75-84"){
        @Override
        public String getStr() {
            return "良好";
        }
    },C("60-74"){
        @Override
        public String getStr() {
            return "及格";
        }
    };
    private String score;
    private Grade(String score){
        this.score = score;
    }
    public String getScore() {
        return score;
    }
    public void setScore(String score) {
        this.score = score;
    }
    @Override
    public String getStr() {
        return "一致的描述，考试合格";
    }
}
